package com.zxh.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxh.mall.common.exception.NoStockException;
import com.zxh.mall.common.utils.PageUtils;
import com.zxh.mall.order.entity.OrderEntity;
import com.zxh.mall.order.vo.OrderConfirmVO;
import com.zxh.mall.order.vo.OrderResponseVO;
import com.zxh.mall.order.vo.OrderSubmitVO;
import com.zxh.mall.order.vo.PayVO;

import java.util.Map;

/**
 * 订单
 *
 * @author zxh
 * @email exc2131413@126.com
 * @date 2024-04-03 19:29:05
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取订单确认页中需要获取的相关信息
     * @return
     */
    OrderConfirmVO confirmOrder();

    OrderResponseVO submitOrder(OrderSubmitVO vo) throws NoStockException;

    PayVO getOrderPay(String orderSn);
}

